﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/admincp.Master" AutoEventWireup="true"
    CodeBehind="ListProductCategory.aspx.cs" Inherits="SES.CMS.AdminCP.ListProductCategory" %>

<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dxwtl" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <h2>
        Danh sách Danh mục sản phẩm</h2>
    <div>
        <dxwtl:ASPxTreeList ID="tlCategory" runat="server" AutoGenerateColumns="False" Width="100%"
            ClientInstanceName="tlCategory" KeyFieldName="ProductCategoryID" ParentFieldName="ParentID"
            EnableCallbacks="False" OnNodeDeleted="tlCategory_NodeDeleted" OnStartNodeEditing="tlCategory_StartNodeEditing">
            <SettingsPager Mode="ShowPager" PageSize="50">
                <AllButton Text="Tất cả">
                </AllButton>
                <NextPageButton Text="Tiếp theo &gt;">
                </NextPageButton>
                <PrevPageButton Text="&lt; Trước">
                </PrevPageButton>
            </SettingsPager>
            <SettingsBehavior AllowFocusedNode="True" />
            <SettingsPager ShowDefaultImages="False">
                <AllButton Text="Tất cả">
                </AllButton>
                <NextPageButton Text="Tiếp theo &gt;">
                </NextPageButton>
                <PrevPageButton Text="&lt; Trước">
                </PrevPageButton>
            </SettingsPager>
            <Columns>
                <dxwtl:TreeListTextColumn FieldName="ProductCategoryID" Name="clProductCategoryID"
                    Visible="False" VisibleIndex="0">
                </dxwtl:TreeListTextColumn>
                <dxwtl:TreeListTextColumn FieldName="ProductCategoryCode" Width="10%" Name="clProductCategoryCode"
                    Caption="Mã danh mục" VisibleIndex="1">
                </dxwtl:TreeListTextColumn>
                <dxwtl:TreeListTextColumn Caption="Tên danh mục sản phẩm" Width="50%" Name="clTenLoaiSanPham"
                    VisibleIndex="2" FieldName="ProductCategoryTitle">
                </dxwtl:TreeListTextColumn>
                <dxwtl:TreeListTextColumn Caption="Số thứ tự" Width="10%" FieldName="OrderID" Name="clIsPublish"
                    VisibleIndex="3">
                </dxwtl:TreeListTextColumn>
                <dxwtl:TreeListCommandColumn Caption="Thao tác" VisibleIndex="4">
                    <EditButton Text="Sửa" Visible="True">
                    </EditButton>
                    <DeleteButton Text="Xóa" Visible="true">
                    </DeleteButton>
                </dxwtl:TreeListCommandColumn>
                <%--<dxwtl:TreeListHyperLinkColumn Caption="Sửa thuộc tính" Name="clThuocTinh" VisibleIndex="5">
                    <DataCellTemplate>
                        <a href='ListProperties.aspx?Pid=<%#Eval("ProductCategoryID") %>' title='<%#Eval("ProductCategoryTitle") %>'
                            target="_blank">
                            <%#Eval("ProductCategoryTitle")%>
                        </a>
                    </DataCellTemplate>
                </dxwtl:TreeListHyperLinkColumn>--%>
            </Columns>
        </dxwtl:ASPxTreeList>
        <p style="float:left; margin-top:10px;">
            <a href="ProductCategory.aspx" class="button-gg-green">Thêm danh mục sản phẩm </a>
        </p>
        <hr />
        
    </div>
</asp:Content>
